﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;

namespace COFE.Web.NetClient
{
    public interface INetClient
    {
        WebResponse SendRequest(string uri, string method, Stream sendStream = null);

    }

    public static class INetClientExtension
    {
        public static WebResponse Get(this INetClient netClient, string uri)
        {
            return netClient.SendRequest(uri, "GET", null);
        }

    }
}
